package com.buffet;

import com.buffet.service.UserService;
import com.buffet.spring.AnnotationApplicationContext;
import com.buffet.spring.AppConfig;

/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ) {
        // 手写 spring
        AnnotationApplicationContext context = new AnnotationApplicationContext(AppConfig.class);
        UserService userService = (UserService) context.getBean("userService");
        userService.add();
    }
}
